package com.mentaleye.biz;

import com.mentaleye.bean.GroupPersonBean;
import com.mentaleye.util.CommonPage;
import com.mentaleye.util.CommonResult;

import java.util.List;
import java.util.Map;

/**
 * Created by Rock on 2017/5/10.
 */
public interface GroupPersonBiz {

    public void queryByCommpage(CommonPage commonPage);

    public CommonResult add(GroupPersonBean bean);

    public CommonResult edit(GroupPersonBean bean);

    public CommonResult removeList(List<Integer> personIdList);

    public GroupPersonBean queryByKey(Integer groupId, Integer personId);

    public Map<String, Object> queryByPersonId(Integer personId);

    public List<Map<String, Object>> queryNotInClass(Integer classId);

    /**
     * 查询班级已/未分组人员
     * @param classId 班级编号
     * @param have 已/未 true/false
     * @return 返回查询结果
     */
    public List<Map<String, Object>> queryPersonList(Integer classId,boolean have);
}
